<style>
	/*** 模型的样式表 ***/
	<#if reportModel?? && reportModel.viewtype != "view">
	.cz_<#if reportModel??>${reportModel.id}</#if>_chart{
		<#if reportModel?? && reportModel.height??>height:${reportModel.height}px;<#else>height:220px;</#if>width:<#if reportModel??>${reportModel.width!'400'}px</#if>; margin: 0 auto;
	}  
	.cz_<#if reportModel??>${reportModel.id}</#if>_table{
		padding:5px;margin-left: 0px; margin-right: 0px; height: 225px;overflow:auto;
	}
	</#if>
	<#if reportModel?? && reportModel.styles??>
	<#list reportModel.styles as style>
	<#if style.pline??  && style.pline == "0">
	.cz_${style.dataid}_even{
		${style.style!''}
	} 	
	<#elseif style.pline??  && style.pline == "1">
	.cz_${style.dataid}_odd{
		${style.style!''}
	}
	<#else>
	.cz_${style.dataid}{
		${style.style!''}
	}
	</#if>
	.m_${style.dataid}{
		${style.style!''}
	}
	</#list>
	</#if>
</style>
<#if viewtype?? && viewtype == "table">
<!-- 表格浏览模式，不用显示 过滤器 -->
<#else>
<div class="rs_layout_top">
	<form id="filterlist_form" action="/${orgi}/design/query/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>/queryFilter.html" method="post" data-toggle="ajax-form" data-target="#design_table">
		<div id="filterlist_div" class="shrinkage">
			<#include "filterlist.html"/>	
		</div>
	</form>
</div>
</#if>
<div id='design_data_div'  class="rs_layout_center" style="height:100%;">
	<#include "designdata.html"/>
</div>
<div class="toolBar_bottom rs_layout_bottom" style="position: absolute;z-index: 100000;bottom: 0px;width: 100%;">
	<form action="<#if viewtype?? && viewtype == 'table'>/${orgi}/design/query/viewreport/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>.html<#else>/${orgi}/design/query/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>/queryFilter.html</#if>" method="post" data-toggle="ajax-form" data-target="<#if viewtype?? && viewtype == 'table'>#tabledata<#else>#design_table</#if>" id="mainDataQueryForm" method="post">
		<p class="fx_icon" style="text-align:center;padding:0px;">
			<input name="opt" type="hidden" value="current" style="line-height: 18px"/>
			<div class="papers_1" style="float:right;line-height:18px;margin:0 10px 0 5px;">
				<img class="pageElems" onclick="submitSearchForm('current');" title="查询" alt="查询" src="/assets/images/action_go.gif">
				<img class="pageElems" onclick="$('#p').val('1');submitSearchForm('first');" title="首页" alt="首页" src="/assets/images/go-first-view.png">
				<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.page gt 1>${reportData.page - 1}<#else>1</#if>');submitSearchForm('last');" title="上一页" alt="上一页" src="/assets/images/go-previous-view.png">			
				<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.data?? && reportData.data?size gte reportData.pageSize>${reportData.page + 1}<#else><#if reportData??>${reportData.page}</#if></#if>');submitSearchForm('next');" title="下一页" alt="下一页" src="/assets/images/go-next-view.png">
				<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.pageSize gt 1 && reportData.total / reportData.pageSize gt 0>${(reportData.total / reportData.pageSize)?ceiling}<#else>1</#if>');submitSearchForm('final');" title="尾页" alt="尾页" src="/assets/images/go-last-view.png">
			</div>
			<div style="float:right;line-height:20px;">
				<label style="font-size: 13px;color: #4095d4;"><#if reportModel?? && reportModel.querytext?? && reportModel.querytext?length gt 0>自定义查询，</#if>更新时间：<#if reportModel?? && reportData??>${reportData.date?string("yyyy-MM-dd HH:mm:ss")}</#if>，用时：<#if reportModel?? && reportData??>${reportData.queryTime/1000.0}<#else>0</#if> 秒 ，<#if reportData?? && reportData.total gt 0>总计：${reportData.total}条，</#if></label>
				<label style="font-size: 13px;">跳转到第</label>
				<input name="p" type="text" style="width: 30px;height: 10px;" id="p" value="<#if reportData??>${reportData.page}<#else>1</#if>">
				<label style="font-size: 13px;">页，</label>
				<label style="font-size: 13px;">每页</label>
				<select onchange="$('#p').val(1)" name="ps" id="ps" style="width: 55px;height: 20px;padding:0px;">
					<option value="10" <#if reportData?? && reportData.pageSize == 10>selected="selected"</#if>>10</option>
					<option value="20" <#if reportData?? && reportData.pageSize == 20>selected="selected"</#if>>20</option>
					<option value="50" <#if reportData?? && reportData.pageSize == 50>selected="selected"</#if>>50</option>
					<option value="100" <#if reportData?? && reportData.pageSize == 100>selected="selected"</#if>>100</option>
					<option value="200" <#if reportData?? && reportData.pageSize == 200>selected="selected"</#if>>200</option>
					<!--  
					<option value="0">不限</option>
					-->
				</select>
				<label style="font-size: 13px;">条，</label>
			</div>
		</p>
	</form>
</div>